package com.example.controller.adm;

import com.example.service.IGsTypeService;
import com.example.vo.ResultVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.CrossOrigin;
/**
 * <p>
 * 物品分类表 前端控制器
 * </p>
 *
 * @author wsl
 * @since 2022-04-11
 */
@RestController
@RequestMapping("/adm/gs-type")
@Api(tags = "物品分类表",value = "")
@CrossOrigin(allowCredentials = "true")
public class GsTypeController {

    @Autowired
    private IGsTypeService gsTypeService;

    @ApiOperation(value = "获取物品分类信息")
    @GetMapping("/query")
    public ResultVo getGsTypeList(){
        return gsTypeService.getGsTypeList();
    }

    @ApiOperation(value = "获取物品类别选项")
    @GetMapping("/options")
    public ResultVo getGsTypeOptions(){
        return gsTypeService.getGsTypeOptions();
    }
}
